<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="frame/jquery-3.5.1/jquery-3.5.1.min.js"></script>
    <style>

    </style>
</head>
<body>
<div id="container">
    <div id="head">
        欢迎【<span id="login_name">张三</span>】登陆
<!--        删除登陆的信息，跳转到的登陆页面-->
        <a href="">注销</a>
    </div>
    <div id="center">
        <div id="left">
            <ul>
                <li>
                    <a href="demo.html" target="main">查询员工</a>
                </li>
                <li>
                    <a href="dept.html">查询部门</a>
                </li>
            </ul>
        </div>
        <div id="right">
            <iframe name="main" height="100%" width="100%" frameborder="no"></iframe>
        </div>
    </div>
    <div id="bottom">
        编码很辛苦？
    </div>
</div>
<script>
    jQuery(function () {
        let msg = sessionStorage.getItem("info");
        if(!msg){
            location.href="login.html";
        }
        let user = JSON.parse(msg);
        jQuery("#login_name").html(user.userName);
    });
</script>
</body>
</html>